import service from ".";
import qs from 'qs'
const adminApi = {
   login(admin){
        return service.post("/login",qs.stringify(admin))
   },
    top5(){
        return service.get('/admin/info/top5')
    },
    getLoginInfo(){
        return service.get('/admin/info/adminInfo')
    },
    rtop5(){
        return service.get('/admin/info/Rtop5')
    },deleteByRid(rid){
        return service.delete(`/admin/info/${rid}`)
    },//获取验证码
    captcha() {
        return service.get("/captcha");
    }
};
export default adminApi;